import request from '@/api/useRequest'
const publicPath = '/userInfo'
export function getInfo(){
    return request({
        url:`${publicPath}/getInfo`,
        method: 'get'
    })
}
export function save(data:any){
    return request({
        url:`${publicPath}/save`,
        method:'post',
        useCommonTip:true,
        data
    }as any)
}
export function getPageData(params: { page: number, pageSize: number }) {
  return request({
    url: `${publicPath}/getPageData`,
    method: 'get',
    params
  })
}

